#include "answer.hpp"

Answer::Answer(const int id, const QString& text, const bool valid, QObject *parent)
	:QObject(parent)
	,m_id(id)
	,m_text(text)
	,m_valid(valid)
{
}

int Answer::answerID() const {
	return m_id;
}

QString Answer::text() const {
	return m_text;
}

bool Answer::valid() const {
	return m_valid;
}

void Answer::setText(const QString& newText) {
	m_text = newText;
}

void Answer::setValid(const bool newValid) {
	m_valid = newValid;
}
